<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{app.css}">
</head>
<body>
<p th:text="|你好,${student.getName()}|">hello Thymeleaf</p>

<p th:text="|你好,${student.name}|">hello Thymeleaf</p>

<a th:href="@{lzzy.jpeg}">lzzy</a>

<div th:object="${student}" class="app">
    <p th:text="*{name}"></p>
    <p th:text="*{id}"></p>
    <p th:text="*{sex}"></p>
</div>

<p th:if="!${student.sex}">男</p>
<p th:if="${student.sex}">女</p>

<ul>
    <li th:each="hobby:${student.hobby}" th:text="${hobby}"></li>
</ul>

<!--替换标签-->
<div th:replace="~{component::frag1}"></div>

<!--保留标签-->
<div th:insert="~{component::frag2}"></div>

<p>当前国家：<span th:text="${#locale.country}">US</span></p>

<p th:text="${#dates.createToday()}"></p>
</body>

<script th:inline="javascript">
    var message = [[${hello}]];
    console.log(message);
</script>

</html>

